<template>
	<view class="content">
		<view class="card">
			<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/imgs/bg%402x.png"></image>
			<view class="card-name">
				<view class="card-name-text-l">可用u点(枚)</view>
				<view class="card-name-text-r" @tap="goUmingxi()">u点明细</view>
				<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/imgs/right%402x.png"></image>
			</view>
			<view class="card-num">200</view>
			<view class="card-dongjie">
				冻结u点
				<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/imgs/tishishuoming-2%402x.png"></image>
			</view>
			<view class="card-dongjie-num">0</view>
		</view>

		<view class="zhuanqu">
			<view class="zhuanqu-tittle">
				赚取u点
				<view>查看更多获取方法</view>
				<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/imgs/chakanquanbu%20copy%402x.png"></image>
			</view>
			<view class="zhuanqu-box">
				<view class="zhuanqu-items">
					<view class="zhuanqu-items-one">
						<view class="zhuanqu-items-tittle">邀请好友</view>
						<view class="zhuanqu-items-text">邀要有获U点</view>
						<view class="zhuanqu-items-button">去邀请</view>
					</view>
				</view>
				<view class="zhuanqu-items center">
					<view class="zhuanqu-items-two">
						<view class="zhuanqu-items-tittle">购物得U点</view>
						<view class="zhuanqu-items-text">U点天天领</view>
						<view class="zhuanqu-items-button">去购物</view>
					</view>
				</view>
				<view class="zhuanqu-items" @tap="goQiandao()">
					<view class="zhuanqu-items-three">
						<view class="zhuanqu-items-tittle">签到得U点</view>
						<view class="zhuanqu-items-text">每天签到领U点</view>
						<view class="zhuanqu-items-button">去签到</view>
					</view>
				</view>
			</view>
		</view>

		<view class="shangcheng">
			<view class="shangcheng-tittle">U点商城</view>
			<view class="shangcheng-goods">
				<view class="shangcheng-goods-boxs" v-for="{item} in 3">
					<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/bg_img.jpg"></image>
					<view class="shangcheng-goods-infos">
						<view class="shangcheng-goods-name">欧舒丹甜蜜樱花沐浴啫喱/身体乳套装</view>
						<view class="shangcheng-goods-price">30U点</view>
						<view class="shangcheng-goods-button">去购买</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {

			}
		},
		onLoad() {

		},
		methods: {
			goUmingxi() {
				uni.navigateTo({
					url:'../mine-udian-mingxi/mine-udian-mingxi'
				})
			},
			goQiandao(){
				uni.navigateTo({
					url:'../mine-udian-qiandao/mine-udian-qiandao'
				})
			}
		}
	}
</script>

<style>
	page {
		background: rgba(245, 245, 245, 1);
	}

	.content {
		width: 100%;
		height: 100%;
	}

	.card {
		width: 100%;
		height: 194.5px;
		background: rgba(255, 255, 255, 1);
	}

	.card image {
		width: 100%;
		height: 100%;
	}

	.card-name {
		display: flex;
		height: 15px;
		position: absolute;
		left: 35px;
		top: 37.5px;
		right: 27px;
	}

	.card-name-text-l {
		height: 15px;
		line-height: 15px;
		font-size: 14px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(255, 255, 255, 1);
	}

	.card-name-text-r {
		position: absolute;
		height: 15px;
		line-height: 15px;
		font-size: 14px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(255, 255, 255, 1);
		right: 14px;
	}

	.card-name image {
		width: 10px;
		height: 10px;
		right: 0;
		position: absolute;
		top: 3px;
	}

	.card-num {
		position: absolute;
		top: 60px;
		left: 35px;
		font-size: 34px;
		font-family: PingFangSC-Medium, PingFangSC;
		font-weight: 500;
		color: rgba(255, 255, 255, 1);
		height: 34px;
		line-height: 34px;
	}

	.card-dongjie {
		position: absolute;
		left: 35px;
		top: 122px;
		display: flex;
		flex-wrap: wrap;
		font-size: 14px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(255, 255, 255, 1);
		height: 14px;
		line-height: 14px;
	}

	.card-dongjie image {
		width: 15px;
		height: 15px;
		position: absolute;
		left: 58px;
	}

	.card-dongjie-num {
		font-size: 18px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(255, 255, 255, 1);
		position: absolute;
		left: 35px;
		top: 146px;
		height: 18px;
		line-height: 18px;
	}

	.zhuanqu {
		width: 100%;
		height: 162.5px;
		background: rgba(255, 255, 255, 1);
	}

	.zhuanqu-tittle {
		padding-left: 15px;
		height: 24px;
		line-height: 24px;
		font-size: 20px;
		font-family: PingFangSC-Medium, PingFangSC;
		font-weight: 500;
		color: rgba(51, 51, 51, 1);
		display: flex;
	}

	.zhuanqu-tittle view {
		font-size: 12px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(102, 102, 102, 1);
		line-height: 12px;
		position: absolute;
		right: 24.5px;
		top: 203px;
	}

	.zhuanqu-tittle image {
		width: 4px;
		height: 8px;
		position: absolute;
		top: 206px;
		right: 15px;
	}

	.zhuanqu-box {
		height: 109px;
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.zhuanqu-items {
		height: 109px;
		width: 33.3%;
		position: relative;
	}

	.zhuanqu-items-one {
		width: 109px;
		height: 109px;
		position: absolute;
		right: 0;
		background: linear-gradient(138deg, rgba(254, 148, 68, 1) 0%, rgba(255, 84, 147, 1) 100%);
		box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.15);
		border-radius: 4px;
	}

	.zhuanqu-items-two {
		width: 109px;
		height: 109px;
		background: linear-gradient(138deg, rgba(254, 148, 68, 1) 0%, rgba(255, 84, 147, 1) 100%);
		box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.15);
		border-radius: 4px;
	}

	.center {
		display: flex;
		justify-content: center
	}

	.zhuanqu-items-three {
		width: 109px;
		height: 109px;
		position: absolute;
		left: 0;
		background: linear-gradient(136deg, rgba(221, 64, 246, 1) 0%, rgba(128, 50, 252, 1) 100%);
		box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.15);
		border-radius: 4px;
	}

	.zhuanqu-items-tittle {
		margin-top: 14.5px;
		margin-left: 10px;
		height: 22.5px;
		line-height: 22.5px;
		font-size: 16px;
		font-family: PingFangSC-Medium, PingFangSC;
		font-weight: 500;
		color: rgba(255, 255, 255, 1);
	}

	.zhuanqu-items-text {
		margin-top: 5px;
		margin-left: 10px;
		height: 14px;
		line-height: 14px;
		font-size: 12px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(255, 241, 241, 1);
	}

	.zhuanqu-items-button {
		padding: 0 0px;
		height: 22.5px;
		line-height: 22.5px;
		text-align: center;
		background: rgba(255, 255, 255, 1);
		border-radius: 11.5px;
		width: 57.5px;
		margin-left: 10px;
		margin-top: 15.5px;
		font-size: 13px;
		font-family: PingFangSC-Medium, PingFangSC;
		font-weight: 500;
		color: rgba(254, 67, 56, 1);
	}

	.shangcheng {
		width: 100%;
		height: 100%;
		background: rgba(255, 255, 255, 1);
		margin-top: 10px;
	}

	.shangcheng-tittle {
		padding-left: 15px;
		height: 24px;
		line-height: 24px;
		font-size: 20px;
		font-family: PingFangSC-Medium, PingFangSC;
		font-weight: 500;
		color: rgba(51, 51, 51, 1);
		padding-top: 15px;
	}

	.shangcheng-goods {
		width: 100%;
		height: 100%;
		padding-bottom: 45px;
	}

	.shangcheng-goods-boxs {
		height: 119.5px;
		margin: 0 10px;
		border-bottom: 1px solid #EEEEEE;
		display: flex;
	}

	.shangcheng-goods-boxs image {
		width: 100px;
		height: 100px;
		margin: 10px 0;
	}

	.shangcheng-goods-infos {
		position: absolute;
		left: 131px;
		right: 15px;
		height: 120px;
	}

	.shangcheng-goods-name {
		font-size: 15px;
		font-family: PingFangSC-Medium, PingFangSC;
		font-weight: 500;
		color: rgba(51, 51, 51, 1);
		margin: 12px 0;
		line-height: 20px;
	}

	.shangcheng-goods-price {
		font-size: 16px;
		font-family: PingFangSC-Medium, PingFangSC;
		font-weight: 500;
		color: rgba(255, 59, 48, 1);
		height: 16px;
		line-height: 16px;
	}

	.shangcheng-goods-button {
		width: 63.5px;
		height: 28px;
		line-height: 28px;
		text-align: center;
		position: absolute;
		right: 0;
		background: rgba(254, 67, 56, 1);
		border-radius: 14px;
		font-size: 14px;
		font-family: PingFangSC-Regular, PingFangSC;
		font-weight: 400;
		color: rgba(255, 255, 255, 1);
	}
</style>
